package com.cykj.pos.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.cykj.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Date;
import java.util.Map;
import java.util.HashMap;
import java.math.BigDecimal;

/**
 * pos1.0分账对象 biz_sub_account
 *
 * @author weijianbo
 * @date 2021-08-26
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@TableName("biz_sub_account")
public class BizSubAccount implements Serializable {

private static final long serialVersionUID=1L;


    /** 主键 */
    @TableId(value = "sub_id")
    private Long subId;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 设备号 */
    @Excel(name = "设备号")
    private String snCode;

    /** userId */
    @Excel(name = "userId")
    private Long userId;

    /** merchId */
    @Excel(name = "merchId")
    private Long merchId;

    /** 结算类型 */
    @Excel(name = "结算类型")
    private String closeType;

    /** 交易金额 */
    @Excel(name = "交易金额")
    private String amount;

    /** 结算金额 */
    @Excel(name = "结算金额")
    private String closeMoney;

    /** 结算率 */
    @Excel(name = "结算率")
    private String closeRate;

    /** 结算完的钱 */
    @Excel(name = "结算完的钱")
    private String overMoney;

    /** 对应交易同步表 */
    @Excel(name = "对应交易同步表")
    private Long transactionId;

    @TableField(exist = false)
    private Map<String, Object> params = new HashMap<>();
}
